package com.white.commonlib;

/**
 * Created by yutf on 2017/8/23 0023.<br/>
 * 用于穷举http异常的类，包含code
 */
public class CommonError
{
    /**Http异常，url异常*/
    public static final int HTTP_URL_ERROR = 987;
    /**Http异常，打开连接异常*/
    public static final int HTTP_CONNECTION_ERROR = 986;
    /**Http异常，未知链接*/
    public static final int HTTP_UNKNOWN_HOST_ERROR = 985;
    /**Http异常，超时*/
    public static final int HTTP_TIMEOUT_ERROR = 984;
    /**HTTP异常，参数不能null*/
    public static final int HTTP_PARAM_ERROR = 983;
    /**HTTP异常，参数不能null*/
    public static final int HTTP_HEADER_ERROR = 982;

    /**没有配置AppConfig*/
    public static final int INNER_NO_CONFIG_ERROR = 981;
    /**没有读写权限*/
    public static final int INNER_NO_WRITE_PERMISSION_ERROR = 980;
    /**json转换异常*/
    public static final int INNER_JSON_PARSE_ERROR = 979;
    /**文件文找到异常，在OkHttpManager中上传文件会抛出*/
    public static final int INNER_FILE_NOT_FOUND_ERROR = 978;
    /**非法参数异常，在OkHttpManager中会抛出*/
    public static final int INNER_ILLEGAL_ARG_ERROR = 977;

    /**未知错误*/
    public static final int UNKNOWN_ERROR = 976;

    public static final String HTTP_ERROR_MSG = "请检查您的网络连接";
    public static final String INNER_ERROR_MSG = "内部错误";

    public static final String HTTP_ERROR = "服务器异常";

}
